class Photo < ActiveRecord::Base
  
  belongs_to :customization
  
  attr_accessible :photos, :photo, :filename, :content_type, :binary_data, :image_file
    
      def image_file=(input_data)
          self.filename = input_data.original_filename
          self.content_type = input_data.content_type.chomp
          self.binary_data = input_data.read 
          
          photos = Photo.find(:all)
  
      end
  
end
